﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/RightFrame.Master"
    CodeBehind="CreateOrUpdateUserInfo.aspx.cs" Inherits="MyOA.UI.PersonManage.UserManage.CreateOrUpdateUserInfo" %>

<asp:Content ContentPlaceHolderID="cphTitle" ID="cphTitle" runat="server">
    您的位置：操作用户信息
</asp:Content>
<asp:Content ContentPlaceHolderID="cphContnent" ID="cphContnent" runat="server">

    <script type="text/javascript" language="javascript">
        var Alert = ymPrompt.alert;
        var Error = ymPrompt.errorInfo;
        function href() {
            document.location.href = "UserManage.aspx";
        }
       
    </script>

    <br />
    <div style="text-align: center; font-size: large">
        操&nbsp;&nbsp;作&nbsp;&nbsp;用&nbsp;&nbsp;户&nbsp;&nbsp;信&nbsp;&nbsp;息&nbsp;&nbsp;信&nbsp;&nbsp;息</div>
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div align="center">
                <div style="width: 25%; text-align: left; float: left">
                </div>
                <div style="width: 51%; text-align: left; float: left">
                    <asp:Panel ID="pnlUserInfo" runat="server" Width="109%" BorderWidth="1px" 
                        BorderColor="#66CCFF">
                        用户登录名：<asp:TextBox ID="txtLoginId" runat="server" Width="157px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvLoginId" runat="server" ErrorMessage="登录名不能为空"
                            ControlToValidate="txtLoginId"></asp:RequiredFieldValidator>
                        <br />
                        <br />
                        密 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 码： 
                        <asp:TextBox type="password" ID="txtPassword" 
                            runat="server" Width="157px" TextMode="Password" 
                            ontextchanged="txtPassword_TextChanged"  ></asp:TextBox><asp:RequiredFieldValidator ID="rfvPassword"
                                runat="server" ErrorMessage="密码不能为空" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                        <br />
                        <br />
                        确 认 密码：&nbsp; <asp:TextBox type="password" ID="txtSureword" runat="server" 
                            Width="157px" TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="确认密码与密码不一致"
                            ControlToCompare="txtPassword" ControlToValidate="txtSureword"></asp:CompareValidator>
                        <br />
                        <br />
                        真 实 姓名：
                        <asp:TextBox ID="txtTrueName" runat="server" Width="157px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="姓名不能为空"
                            ControlToValidate="txtTrueName"></asp:RequiredFieldValidator><br />
                        <br />
                        所 在 机构：
                        <asp:DropDownList ID="ddlBranch" runat="server" CssClass="ddlCss" Style="position: relative;
                            top: 0px; left: 0px;" Width="161px" AutoPostBack="True" 
                            onselectedindexchanged="ddlBranch_SelectedIndexChanged" >
                        </asp:DropDownList>
                        <br />
                        <br />
                        所 在 部门：
                        <asp:DropDownList ID="ddlDepart" runat="server" CssClass="ddlCss" Style="position: relative;
                            top: 0px; left: 0px;" Width="161px" Enabled="False">
                        </asp:DropDownList>
                        <br />
                        <br />
                        性别：<asp:RadioButtonList ID="rdolstGender" runat="server" RepeatColumns="2" Width="106px"
                            Height="25px">
                            <asp:ListItem Selected="True" Value="1">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                        </asp:RadioButtonList>
                        &nbsp;&nbsp;&nbsp;<br />
                         角&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;色：
                        <asp:DropDownList ID="ddlRole" runat="server" CssClass="ddlCss" Style="position: relative;
                            top: 0px; left: 0px;" Width="161px">
                        </asp:DropDownList>
                        <br />
                        <br />
                        当 前 状态：&nbsp;<asp:DropDownList ID="ddlUserState" runat="server" CssClass="ddlCss" Style="position: relative;
                            top: 0px; left: 0px;" Width="161px">
                        </asp:DropDownList>
                        <br />
                        <br />
                        <asp:Button ID="btnAdd" runat="server" Text="保存" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                            onMouseOut="document.getElementById(this.id).className='btnOut'" OnClick="btnAdd_Click" />
                        &nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Text="全部重写" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                            onMouseOut="document.getElementById(this.id).className='btnOut'" 
                            onclick="Button1_Click1" CausesValidation="False"/>
                        &nbsp;
                        <asp:Button ID="Button2" runat="server" Text="返回" CssClass="btn" onMouseOver="document.getElementById(this.id).className='btnOver'"
                            onMouseOut="document.getElementById(this.id).className='btnOut'" 
                            onclick="Button2_Click" CausesValidation="False" /></asp:Panel>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
